package com.software.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.software.bean.OrderBean;
import com.software.dto.*;
import com.software.vo.OrderVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wyj
 * @since 2024-04-04
 */
public interface OrderService extends IService<OrderBean> {

    List<Integer> addOrder(AddOrderDto addOrderDto);

    List<OrderBean> getOrderList(Integer customerId);

    List<OrderBean> getProductForDeliveryList(Integer customerId);

    Integer addDelivery(AddDeliveryNoDto addDeliveryNoDto);

    IPage<OrderBean> getOrderListForPage(Integer pageNum, Integer pageSize);

    OrderVo getOrderInfoByOrderId(OrderInfoByOrderIdsDto orderInfoByOrderIdsDto);

    Integer postOrderToPay(OrderPayDto orderPayDto);

    OrderBean getOrderDetailByOid(Integer oid);

    Integer putOrderToRefund(Integer oid);

    Integer putOrderToReceive(Integer oid);

    OrderBean getOrderDetail(Integer oid);

    List<Map<String, Object>> orderCharts();

    Integer cancelOrder(Integer oid);

    Integer cancelPay(CancelOrderPayDto orderPayDto);
}
